package com.bingbing.bingbingmall.order.dao;

import com.bingbing.bingbingmall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author bingbing
 * @email sunlightcs@gmail.com
 * @date 2022-03-12 18:49:56
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    void updateOrderStatus(@Param("outTradeNo") String outTradeNo, @Param("code") Integer code);

    Integer queryOrderStatus(@Param("orderSn") String orderSn);

    void updateOrder(OrderEntity entity);
}
